Support Python 3.12.
